package demo2.log.controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;

import javax.annotation.PostConstruct;

/**
 * @Author quan
 * @Description 通过lombok输出日志（更加简单）
 * @Date 2023/7/20 22:15
 */

@Slf4j
@Controller
public class Demo3_DefineLogLombok {
//    //打印的对象
//    private Logger logger = LoggerFactory.getLogger("lombok。。。。。。");
    @PostConstruct
    public void postConstruct(){
        log.info("lombok打印的日志信息-----");
    }
}
